Skip to content

Add SampleConsoleAppRuby written in Ruby#18

Open
Alec13355 wants to merge 1 commit intomainfrom
Alec13355/add-sampleconsoleappruby
Open

Add SampleConsoleAppRuby written in Ruby#18
Alec13355 wants to merge 1 commit intomainfrom
Alec13355/add-sampleconsoleappruby

Conversation

@Alec13355
Copy link
Member

@Alec13355 Alec13355 commented Nov 20, 2024

Fixes #17

Add a new Ruby sample console app in the SampleConsoleAppRuby folder.

  • Add Ruby script Program.rb:

    • Create a Ruby script named Program.rb.
    • Read configuration from config.json.
    • Make API calls to Azure Translate and OpenAI.
    • Print the final translated text.
  • Add configuration file config.json:

    • Create a configuration file named config.json.
    • Include the same configuration keys as example-appsettings.json in other sample console apps.

For more details, open the Copilot Workspace session.

Fixes #17

Add a new Ruby sample console app in the `SampleConsoleAppRuby` folder.

* **Add Ruby script `Program.rb`**:
  - Create a Ruby script named `Program.rb`.
  - Read configuration from `config.json`.
  - Make API calls to Azure Translate and OpenAI.
  - Print the final translated text.

* **Add configuration file `config.json`**:
  - Create a configuration file named `config.json`.
  - Include the same configuration keys as `example-appsettings.json` in other sample console apps.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/AzureCloudWorkshops/ACW-GenAI-UniversalTranslator/issues/17?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add sampleconsoleapp into folder SampleConsoleAppRuby and have it written in ruby

1 participant